<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 26383
  Date: 2020/12/26
  Time: 13:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form action="/FindByCate" method="post">
    <div class="layui-form-item">
        <div class="layui-input-line">
            <a type="button" class="layui-btn layui-btn-xs" href="/admin/shownewsadd.jsp">
                <i class="layui-icon">&#xe608;</i> 添加
            </a>
            <select name="category" lay-verify="required">
                <option value=""></option>
                <c:forEach var="cate" items="${sessionScope.categories}">
                    <option value="${cate.category}">${cate.category}</option>
                </c:forEach>
            </select>
            <button type="submit" class="layui-btn layui-btn-xs">
                查询
            </button>
        </div>
    </div>
</form>